<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/skin_/index.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/global.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.custom.min.js"></script>
    <script type="text/javascript" src="../js/layDate-v5.0.9/laydate/laydate.js"></script>
<title>首页</title>
</head>
<body>
<div id="container">
	<div id="hd">
    </div>
    <div id="bd">
    	<div id="main">
            <ul class="nav-list ue-clear">
            	<li class="nav-item desk">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">我的桌面</p>
                    </a>
                </li>
                <li class="nav-item notice">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">通知公告</p>
                    </a>
                </li>
                
                <li class="nav-item plan">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">学生选题</p>
                    </a>
                </li>
                <li class="nav-item contacts">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">任务书</p>
                    </a>
                </li>
                <li class="nav-item mail">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">开题报告</p>
                    </a>
                </li>
                <li class="nav-item logs">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">我的论文</p>
                    </a>
                </li>
                <li class="nav-item dosthings">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">我的待办</p>
                    </a>
                </li>
                <li class="nav-item fav">
                	<a href="">
                        <p class="icon"></p>
                        <p class="title">查看成绩</p>
                    </a>
                </li>
                
                <!--<li class="nav-item browser">
                <a href="index.html">
                    <p class="icon"></p>
                    <p class="title">浏览器</p>
                </a>
                </li>-->
            </ul>
            
            <ul class="content-list">


                <li class="content-item richeng">
                	<h2 class="content-hd">
                    	<span class="opt">
                        	<span class="refresh" title="刷新"></span>
                            <span class="setting" title="设置"></span>
                            <span class="report" title="导出"></span>
                            <span class="close" title="关闭"></span>
                        </span>
                    	<span class="title">通知公告</span>
                    </h2>
                    <div class="content-bd" style="height: 500px;">
                    	<ul class="content-list things">
                        	<li class="content-list-item" id="list2">

                            </li>
                        </ul>
                    </div>
                </li>

                <li class="content-item news">
                    <h2 class="content-hd">
                    	<span class="opt">
                        	<span class="refresh" title="刷新"></span>
                            <span class="setting" title="设置"></span>
                            <span class="report" title="导出"></span>
                            <span class="close" title="关闭"></span>
                        </span>
                        <span class="title">课题列表</span>
                    </h2>
                    <div class="content-bd"  style="height: 800px;">
                        <ul class="content-list things">
                            <li class="content-list-item" id="list3">

                            </li>

                        </ul>
                    </div>
                </li>

                <li class="content-item dothings">
                    <h2 class="content-hd">
                    	<span class="opt">
                        	<span class="refresh" title="刷新"></span>
                            <span class="setting" title="设置"></span>
                            <span class="report" title="导出"></span>
                            <span class="close" title="关闭"></span>
                        </span>
                        <span class="title">待办事项</span>
                    </h2>
                    <div class="content-bd">
                        <ul class="content-list things">
                            <li class="content-list-item" id="list">

                            </li>

                        </ul>
                    </div>
                </li>

                

                
                <li class="content-item news">
                	<h2 class="content-hd" >
                    	<span class="opt">
                        	<span class="refresh" title="刷新"></span>
                            <span class="setting" title="设置"></span>
                            <span class="report" title="导出"></span>
                            <span class="close" title="关闭"></span>
                        </span>
                    	<span class="title">诚信与学术规范</span>
                    </h2>
                    <div class="content-bd">
                    	<ul class="content-list things">
                        	<li class="content-list-item">
                            	<i class="icon"></i>
                                <a href="javascript:;">本人郑重声明：所呈交的毕业论文（设计），是本人在导师的指导下独立进行研究所取得的成果。毕业论文（设计）中凡引用他人已经发表或未发表的成果、数据、观点等，均已明确注明出处。</a>
                            </li>
                            <li class="content-list-item">
                            	<i class="icon"></i>
                                <a href="javascript:;">毕业论文（设计）中凡引用他人已经发表或未发表的成果、数据、观点等，均已明确注明出处。</a>
                            </li>
                            <li class="content-list-item">
                            	<i class="icon"></i>
                                <a href="javascript:;">尽我所知，除文中已经注明引用的内容外，本论文不包含任何其他个人或集体已经公开发表或撰写过的研究成果。对本文的研究做出重要贡献的个人和集体，均已在文中以明确方式标明。</a>
                            </li>
                            <li class="content-list-item">
                            	<i class="icon"></i>
                                <a href="javascript:;">西安文理校园通知</a>
                            </li>
                            <li class="content-list-item">
                            	<i class="icon"></i>
                                <a href="javascript:;">西安文理校园通知</a>
                            </li>
                        </ul>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="../js/jquery.cookie.js"></script>
<script type="text/javascript" src="../js/application.js"></script>
<script type="text/javascript">
    //----------------------------------------------------------------------课题待办
    var jon={};
    jon['curr']=1;
    jon['limit']=50;
    jon['token'] = getCookie('token');
    $.ajax({
        url: "/getMyArticle",
        type: "POST",
        data: {"jon": JSON.stringify(jon)},
        success: function (res) {
            debugger;
            var json  = JSON.parse(res);
            for(var a in json){
                document.getElementById("list").innerHTML+="<i class=\"icon\"></i><a href=\"adminDeal.html\" style=\"font-size:14px;\">"+json[a].articlename+"</a><br><br>";
            }
        }
    });
//-----------------------------------------------------------通知公告
    $.ajax({
        url: "/getNotice",
        type: "POST",
        data: {},
        success: function (result) {
            var res = JSON.parse(result);
            //console.log(res.res);
            var json = eval("("+res.res+")");
            for(var a in json){
                document.getElementById("list2").innerHTML+="<i class=\"icon\"></i><a href=\"notice.html\" style=\"font-size:14px;\">"+json[a].noticename+"</a><br><br>";
            }
        }
    });
    //========================================================课题
    var jon={};
    jon['curr']=1;
    jon['limit']=50;

    $.ajax({
        url: "/getArticle",
        type: "POST",
        data: {"jon": JSON.stringify(jon)},
        success: function (res) {
            var json  = JSON.parse(res);
            for(var a in json){
                document.getElementById("list3").innerHTML+="<i class=\"icon\"></i><a href=\"articleList.html\" style=\"font-size:14px;\">"+json[a].articlename+"</a><br><br>";
            }
        }
    });


	var minwidth = 282;
	resizeWidth();
	$(top.window).resize(function(e) {
       resizeWidth();
    });
	$(function() {
		$( ".content-list" ).sortable({
		  revert: true,
		  handle:'h2'
		});
		
	});
	
function resizeWidth (){
	if($('#main').width() / 3 < minwidth){
		$('.content-item').width(($('#main').width() / 2) - 15);
	}else{
		$('.content-item').width(($('#main').width() / 3) - 15);	
	}
		
}
</script>
</html>
